package com.itheima.作业.Three;

import static com.itheima.作业.Three.Bs.binarySearch;

/**
 *
 设计一个工具类, 定义一个可以对double类型数组进行二分查找的方法
 */
public class Test {
    public static void main(String[] args) {
            int[] arr = {1,8,2,7,3,5,4,9,10};
            int index = binarySearch(arr, 5);
            System.out.println(index);
        }
    }
